#ifndef __BONUS_H
#define __BONUS_H

#include "Base.h"
#include "WObject.h"
#include "AbstractRenderer.h"

class Player;

class Bonus : public WObject {
protected:
	RGBd _color;
public:
	Bonus (const Point3d &pos, const RGBd &col);
	virtual void applyBonus (Player *p) = 0;
	
	inline
	RGBd & getColor () { return _color; }

	inline
	const RGBd getColor() const 
	{
		return _color;
	}
	
	bool isBonus () { return true; }
	
	void renderOn (AbstractRenderer *renderer);

	void step (const double tau) { Q_UNUSED(tau); }
	void onCollision (WObject *from);
};

#endif